package day10;

/**
 * @Author juzipi
 * @Date 2021/6/23 19:47
 * @Info
 */
public class PersonTest {

    private int age;

    //
    public void setAge(int age){
        if (age < 0 || age > 130){
            System.out.println("数据非法");
            return;
        }
        this.age = age;
    }

    public int getAge(){
        return age;
    }

    public int doAge(int age){
        this.age = age;
        return age;
    }


}
